﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Data;
using System.Text;

namespace paper.evisa99.com.Controllers
{
    public class AUController : Controller
    {
        Class.Record record = new Class.Record();
        Class.Html html = new Class.Html();
        Class.Http http = new Class.Http();
        Class.Utility utility = new Class.Utility();
        static string CountryCode = "AU";
        //用户资料库说明：Member(核心资料),Info_Personal-PS(基本资料),Info_Experience-EX(工作教育),Info_Family-FM(家庭信息)
        //Info_Passport-PP(护照信息),Info_Relation-RL(亲属信息),Info_Colleague-CO(同行人信息),Info_ItineraryXX-IT(行程)
        ///====================================================================web
        public ActionResult Start(string id, string id2, string id3, string key, string cf, string un)
        {
            //param
            string Merchant = id;
            string AccountID = id2;
            string MemberID = id3;
            string ComeFrom = cf;
            string UserName = un;
            if (!Class.Authority.ValidKey(key, Merchant + AccountID + MemberID)) { Response.Write("参数提交错误"); Response.End(); }
            //declare
            DataTable memberinfo, itinfo;
            //data
            Class.DB.Conn.Open();
            memberinfo = record.GetMemberInfo(MemberID);
            //itinfo = record.GetItineraryInfo(MemberID, CountryCode);
            Class.DB.Conn.Close();
            //html
            //--判断是否有该客户-基本记录，没有的新建
            if (memberinfo.Rows.Count == 0)
            {
                record.CreateMember(Merchant, AccountID, MemberID, ComeFrom, UserName, "", "", "", "", "");
            }
            //--判断是否有该客户-行程记录，没有的新建
            //if (itinfo.Rows.Count == 0)
            //{
            //    record.CreateItinerary(MemberID, CountryCode);
            //}
            //--判断该资料是否锁定
            //if (memberinfo.Rows.Count > 0)
            //{
            //    if (memberinfo.Rows[0]["IsUsed"].ToString() != "True")
            //    {
            //        Response.Redirect("/Home/NoAllowed");
            //    }
            //}
            //output
            //--如果不需要显示确认页
            Response.Redirect("/" + CountryCode + "/Form/PS/" + MemberID + "/?key=" + Class.Authority.GenKey(MemberID + "PS"));
            return View();
        }
        ///--------------------------------------------------------------------------------------------PS
        public ActionResult Form(string id, string id2, string key)
        {
            //param
            string InfoChannel = id.ToUpper();
            string MemberID = id2;
            if (!Class.Authority.ValidKey(key, MemberID + InfoChannel)) { Response.Write("参数提交错误"); Response.End(); }
            //declare
            DataTable memberinfo, psinfo, exinfo, fminfo, ppinfo, rlinfo, coinfo, itinfo;
            StringBuilder box = new StringBuilder();
            StringBuilder js = new StringBuilder();
            string NotRequired = "", OnReadyScript = "";
            //data
            Class.DB.Conn.Open();
            memberinfo = record.GetMemberInfo(MemberID);
            Class.DB.Conn.Close();
            //html
            //--预定义JS
            js.AppendLine("<script type=\"text/javascript\" src=\"/content/scripts/web/valid.js\"></script>");
            js.AppendLine("<script type=\"text/javascript\" src=\"/content/scripts/" + CountryCode.ToLower() + "/" + InfoChannel.ToLower() + ".js\"></script>");
            //--生成填写表格
            switch (InfoChannel)
            {
                case "PS":
                    OnReadyScript = "";
                    NotRequired = "|AnotherSurname|AnotherPersonalName|Email|";
                    //
                    box.AppendLine(html.GroupStart());
                    box.AppendLine(html.TextBox(ref memberinfo, "", "姓氏", "Surname", "填写中文", 10, "CN", "", "", false, true));
                    box.AppendLine(html.TextBox(ref memberinfo, "", "名称", "PersonalName", "填写中文", 10, "CN", "", "", false, true));
                    box.AppendLine(html.HelpCell());
                    box.AppendLine(html.TextBox(ref memberinfo, "", "曾用姓氏", "AnotherSurname", "填写中文", 10, "CN", "", "", false, true));
                    box.AppendLine(html.TextBox(ref memberinfo, "", "曾用名称", "AnotherPersonalName", "填写中文", 10, "CN", "", "", false, true));
                    box.AppendLine(html.HelpCell("没有则不填写"));
                    box.AppendLine(html.GroupEnd());
                    box.AppendLine(html.GroupStart());
                    box.AppendLine(html.DropDownList(ref memberinfo, "", "性别", "Gender", "先生,女士", "", "", false, true));
                    box.AppendLine(html.DateYMD(ref memberinfo, "", "出生日期", "Birthday", "2000-1-1", "1901-1-1", DateTime.Now.ToShortDateString(), "", "", false, true));
                    box.AppendLine(html.TextBox(ref memberinfo, "", "身份证", "IdCard", "", 18, "EN", "", "", true, true));
                    box.AppendLine(html.HelpCell());
                    box.AppendLine(html.DateYMD(ref memberinfo, "", "身份证有效期", "", "2010-1-1", "1901-1-1", DateTime.Now.ToShortDateString(), "", "", false, true));
                    box.AppendLine(html.DateYMD(ref memberinfo, "", "", "", "2010-1-1", "1901-1-1", DateTime.Now.ToShortDateString(), "", "", false, true));
                    box.AppendLine(html.EmptyBlank());
                    box.AppendLine(html.GroupEnd());
                    box.AppendLine(html.GroupStart());
                    box.AppendLine(html.ChinaCity("", "出生国家", "BirthPrivence", "BirthPrivence,BirthCity,BirthDistrict", "no", "", "", false, true));
                    box.AppendLine(html.EmptyBlank());
                    box.AppendLine(html.HelpCell("只能办理中国城市"));
                    box.AppendLine(html.ChinaCity("", "出生省份", "BirthCity", "BirthPrivence,BirthCity,BirthDistrict", "no", "", "", false, true));
                    box.AppendLine(html.ChinaCity("", "出生城市", "BirthDistrict", "BirthPrivence,BirthCity,BirthDistrict", "no", "", "", false, true));
                    box.AppendLine(html.HelpCell());
                    box.AppendLine(html.ChinaCity("", "现居住国家", "AddressPrivence", "AddressPrivence,AddressCity,AddressDistrict", "no", "", "", false, true));
                    box.AppendLine(html.EmptyBlank());
                    box.AppendLine(html.HelpCell("只能办理中国城市"));
                    box.AppendLine(html.ChinaCity("", "现居住省份", "AddressCity", "AddressPrivence,AddressCity,AddressDistrict", "no", "", "", false, true));
                    box.AppendLine(html.ChinaCity("", "现居住城市", "AddressDistrict", "AddressPrivence,AddressCity,AddressDistrict", "no", "", "", false, true));
                    box.AppendLine(html.HelpCell());
                    box.AppendLine(html.TextBox(ref memberinfo, "", "详细地址", "Address", "不写省份及地市", 100, "Fill", "", "", true, true));
                    box.AppendLine(html.HelpCell());
                    box.AppendLine(html.TextBox(ref memberinfo, "", "邮政编码", "PostCode", "", 6, "NUM", "", "", false, false));
                    box.AppendLine(html.EmptyBlank());
                    box.AppendLine(html.HelpCell());
                    box.AppendLine(html.GroupEnd());
                    box.AppendLine(html.GroupStart());
                    box.AppendLine(html.TextBox(ref memberinfo, "", "电子邮箱", "Email", "如有请填写", 10, "Fill", "", "", false, true));
                    box.AppendLine(html.TextBox(ref memberinfo, "", "手机号码", "Mobile", "", 11, "NUM", "", "", false, true));
                    box.AppendLine(html.HelpCell("儿童填写家长的邮箱、电话"));
                    box.AppendLine(html.TextBox(ref memberinfo, "", "家庭电话", "AltPhoneCode", "区号", 18, "EN", "", "", false, true));
                    box.AppendLine(html.TextBox(ref memberinfo, "", "", "AltPhoneType", "固定电话", 18, "EN", "", "", false, true));
                    box.AppendLine(html.HelpCell());
                    box.AppendLine(html.GroupEnd());
                    ////是否有美签
                    //Form.Append(html.Judge2(ref VaInfoRow, "", "现在拥有有效的美国或加拿大签证，或者十年内去过加拿大？", "PrecheckMemo", "", "", "", "", true, false));
                    ////是否是公务员
                    //Form.Append(html.Judge2(ref Info12, "", "您是否是公务员？", "IsCivilServant", "", "", "", "JudgeIsCivilServant", true, false));
                    ////是否是退役军官
                    //Form.Append(html.Judge2(ref Info12, "", "您是否是退役军官？", "IsExsoldier", "", "", "", "JudgeIsExsoldier", true, false));
                    break;
                case "EX":
                    //OnReadyScript = "<script>$(function () {JudgeWorkNow();JudgeIsLastWork();JudgeIsLastWork2();JudgeIsEducation();JudgeIsEducation2();JudgeIsEducation3();JudgeEtc02();JudgeEtc03();})</script>";
                    NotRequired = "|CurrentOccupation_EN|CurrentEntryDate|CurrentCompany_EN|CurrentEducationSchool_EN";
                    NotRequired += "|LastCompany|LastCompany_EN|LastCompany2|LastCompany_EN2|LastCompany3|LastCompany_EN3";
                    NotRequired += "|EducationSchool|EducationSchool_EN|EducationSchool2|EducationSchool_EN2|EducationSchool3|EducationSchool_EN3|";
                    //当前工作
                    box.AppendLine(html.GroupStart());
                    box.AppendLine(html.JudgeList(ref memberinfo, "", "您目前的职业是？", "WorkNow", "工作,无业,学生,其他,法人代表", "JudgeWorkNow", "", "", true));
                    box.AppendLine(html.HelpCell());
                    box.AppendLine(html.GroupEnd());
                    box.AppendLine(html.GroupStart("WorkNow_1", false));
                    box.AppendLine(html.TextCaution("无业人员请在下面填写过去十年的工作情况，没有工作请填无"));
                    box.AppendLine(html.GroupEnd());
                    box.AppendLine(html.GroupStart("WorkNow_2", false));
                    box.AppendLine(html.TextCaution("自由职业请在下面填写过去十年的工作情况，没有工作请填无"));
                    box.AppendLine(html.GroupEnd());
                    box.AppendLine(html.GroupStart("WorkNow_3", false));
                    box.AppendLine(html.TextCaution("家庭主妇请在下面填写过去十年的工作情况，没有工作请填无"));
                    box.AppendLine(html.GroupEnd());
                    box.AppendLine(html.GroupStart("WorkNow_4", false));
                    box.AppendLine(html.TextCaution("退休人员请在下面填写退休前十年内的工作情况"));
                    box.AppendLine(html.GroupEnd());
                    box.AppendLine(html.GroupStart("WorkNow_5", false));
                    box.AppendLine(html.TextCaution("退休人员请在下面填写退休前十年内的工作情况"));
                    box.AppendLine(html.GroupEnd());
                    box.AppendLine(html.GroupStart("WorkNow_6", false));
                    box.AppendLine(html.TextBox(ref memberinfo, "", "职位", "AnotherSurname", "请用中文填写", 10, "CN", "", "", false, true));
                    box.AppendLine(html.DateYMD(ref memberinfo, "", "入职日期", "CurrentEntryDate", "2000-1-1", "1901-1-1", DateTime.Now.ToShortDateString(), "WorkNow", "工作", false, true));
                    box.AppendLine(html.HelpCell("填写最近一次工作的信息"));
                    box.AppendLine(html.GroupEnd());
                    box.AppendLine(html.GroupStart());
                    box.AppendLine(html.TextBox(ref memberinfo, "", "公司名称", "CurrentCompany", "请用中文填写", 10, "Fill", "", "", false, true));
                    box.AppendLine(html.TextBox(ref memberinfo, "", "公司邮编", "CurrentCompanyAddressPostCode", "请用中文填写", 10, "Fill", "", "", false, true));
                    box.AppendLine(html.TextBox(ref memberinfo, "", "公司地址", "CurrentCompanyAddress", "请用中文填写", 18, "Fill", "", "", true, true));
                    box.AppendLine(html.HelpCell("填写公司的当前地址"));
                    box.AppendLine(html.TextBox(ref memberinfo, "", "公司电话", "CurrentCompanyPhoneCode", "填写公司电话", 10, "Fill", "", "", false, true));
                    box.AppendLine(html.GroupEnd());
                    box.AppendLine(html.GroupStart());
                    box.AppendLine(html.TextBox(ref memberinfo, "", "上一份工作单位中文名称", "LastCompany", "", 18, "CN", "", "", false, true));
                    box.AppendLine(html.TextBox(ref memberinfo, "", "上一份工作单位英文名称", "LastCompany", "", 18, "CN", "", "", false, true));
                    box.AppendLine(html.DateYMD(ref memberinfo, "", "离职日期", "WorkEndDate", "2000-1-1", "1901-1-1", DateTime.Now.ToShortDateString(), "WorkNow", "无业", true, true));
                    box.AppendLine(html.HelpCell("若未离职则不填"));
                    box.AppendLine(html.GroupEnd());
                    box.AppendLine(html.GroupStart());
                    box.AppendLine(html.TextBox(ref memberinfo, "", "当前学校名称", "CurrentEducationSchool", "", 30, "Fill", "WorkNow", "学生", true, true));
                    box.AppendLine(html.HelpCell(""));
                    box.AppendLine(html.DateYMD(ref memberinfo, "", "当前学校入学日期", "CurrentEducationEntryDate", "2000-1-1", "1901-1-1", DateTime.Now.ToShortDateString(), "WorkNow", "学生", true, true));
                    box.AppendLine(html.HelpCell());
                    box.AppendLine(html.TextBox(ref memberinfo, "", "详细说明", "AddressCity", "请用中文填写", 100, "Fill", "", "", true, true));
                    box.AppendLine(html.HelpCell());
                    box.AppendLine(html.GroupEnd());
                    break;
                case "FM":
                    //OnReadyScript = "<script>$(function () {JudgeWorkNow();JudgeIsLastWork();JudgeIsLastWork2();JudgeIsEducation();JudgeIsEducation2();JudgeIsEducation3();JudgeEtc02();JudgeEtc03();})</script>";
                    NotRequired = "|CurrentOccupation_EN|CurrentEntryDate|CurrentCompany_EN|CurrentEducationSchool_EN";
                    NotRequired += "|LastCompany|LastCompany_EN|LastCompany2|LastCompany_EN2|LastCompany3|LastCompany_EN3";
                    NotRequired += "|EducationSchool|EducationSchool_EN|EducationSchool2|EducationSchool_EN2|EducationSchool3|EducationSchool_EN3|";
                    //当前工作
                    box.AppendLine(html.JudgeList(ref memberinfo, "", "婚姻状况", "WorkNow", "已婚,未婚,离异,丧偶", "MaritalStatus", "", "", true));
                    box.AppendLine(html.GroupEnd());
                    box.AppendLine(html.GroupStart());
                    box.AppendLine(html.TextBox(ref memberinfo, "", "配偶的姓氏", "SpouseSurname", "姓氏", 18, "Fill", "", "", false, true));
                    box.AppendLine(html.TextBox(ref memberinfo, "", "配偶的名称", "SpousePersonalName", "名称", 18, "Fill", "", "", false, true));
                    box.AppendLine(html.DateYMD(ref memberinfo, "", "配偶出生日期", "Birthday", "2000-1-1", "1901-1-1", DateTime.Now.ToShortDateString(), "", "", true, true));
                    box.AppendLine(html.GroupEnd());
                    box.AppendLine(html.GroupStart());
                    box.AppendLine(html.ChinaCity("", "配偶出生国家", "BirthPrivence", "BirthPrivence,BirthCity,BirthDistrict", "no", "", "", false, true));
                    box.AppendLine(html.HelpCell());
                    box.AppendLine(html.EmptyBlank());
                    box.AppendLine(html.ChinaCity("", "配偶出生省份", "BirthCity", "BirthPrivence,BirthCity,BirthDistrict", "no", "", "", false, true));
                    box.AppendLine(html.ChinaCity("", "配偶出生城市", "BirthDistrict", "BirthPrivence,BirthCity,BirthDistrict", "no", "", "", false, true));
                    box.AppendLine(html.GroupEnd());
                    box.AppendLine(html.GroupStart());
                    box.AppendLine(html.DropDownList(ref memberinfo, "", "住址与申请人是否一致", "WorkNow", "是,否", "", "", false, true));
                    box.AppendLine(html.DropDownList(ref memberinfo, "", "是否同行", "WorkNow", "是,否", "", "", false, true));
                    box.AppendLine(html.EmptyBlank());
                    box.AppendLine(html.TextBox(ref memberinfo, "", "配偶现居住地址", "IdCard", "", 18, "Fill", "", "", false, true));
                    box.AppendLine(html.TextBox(ref memberinfo, "", "配偶出生地", "IdCard", "", 18, "Fill", "", "", false, true));
                    box.AppendLine(html.HelpCell());
                    box.AppendLine(html.GroupEnd());
                    box.AppendLine(html.GroupStart());
                    box.AppendLine(html.TextBox(ref memberinfo, "", "父亲的姓氏", "SpouseSurname", "姓氏", 18, "Fill", "", "", false, true));
                    box.AppendLine(html.TextBox(ref memberinfo, "", "父亲的名称", "SpousePersonalName", "名称", 18, "Fill", "", "", false, true));
                    box.AppendLine(html.EmptyBlank());
                    box.AppendLine(html.DateYMD(ref memberinfo, "", "父亲的出生日期", "Birthday", "2000-1-1", "1901-1-1", DateTime.Now.ToShortDateString(), "", "", true, true));
                    box.AppendLine(html.GroupEnd());
                    box.AppendLine(html.GroupStart());
                    box.AppendLine(html.ChinaCity("", "父亲的出生地", "FatherAddressPrivence", "FatherAddressPrivence,FatherAddressCity,AddressDistrict", "no", "", "", true, true));
                    box.AppendLine(html.EmptyBlank());
                    box.AppendLine(html.ChinaCity("", "出生省份", "FatherAddressCity", "FatherAddressPrivence,FatherAddressCity,AddressDistrict", "no", "", "", false, true));
                    box.AppendLine(html.ChinaCity("", "出生城市", "AddressDistrict", "FatherAddressPrivence,FatherAddressCity,AddressDistrict", "no", "", "", false, true));
                    box.AppendLine(html.HelpCell("只能办理中国城市"));
                    box.AppendLine(html.GroupEnd());
                    box.AppendLine(html.GroupStart());
                    box.AppendLine(html.JudgeList(ref memberinfo, "", "住址与申请人是否一致", "WorkNow", "是,否", "MaritalStatus", "", "", true));
                    box.AppendLine(html.EmptyBlank());
                    box.AppendLine(html.ChinaCity("", "现居住省份", "AddressCity", "AddressPrivence,AddressCity,AddressDistrict", "no", "", "", false, true));
                    box.AppendLine(html.ChinaCity("", "现居住城市", "AddressDistrict", "AddressPrivence,AddressCity,AddressDistrict", "no", "", "", false, true));
                    box.AppendLine(html.HelpCell());
                    box.AppendLine(html.DropDownList(ref memberinfo, "", "性别", "IdCard", "先生,女士", "", "", false, true));
                    box.AppendLine(html.DropDownList(ref memberinfo, "", "是否同行", "WorkNow", "先生,女士", "", "", false, true));
                    box.AppendLine(html.HelpCell());
                    box.AppendLine(html.GroupEnd());
                    break;
                case "PP":
                    //OnReadyScript = "<script>$(function () {JudgeWorkNow();JudgeIsLastWork();JudgeIsLastWork2();JudgeIsEducation();JudgeIsEducation2();JudgeIsEducation3();JudgeEtc02();JudgeEtc03();})</script>";
                    NotRequired = "|CurrentOccupation_EN|CurrentEntryDate|CurrentCompany_EN|CurrentEducationSchool_EN";
                    NotRequired += "|LastCompany|LastCompany_EN|LastCompany2|LastCompany_EN2|LastCompany3|LastCompany_EN3";
                    NotRequired += "|EducationSchool|EducationSchool_EN|EducationSchool2|EducationSchool_EN2|EducationSchool3|EducationSchool_EN3|";
                    //当前工作
                    box.AppendLine(html.GroupStart());
                    box.AppendLine(html.TextBox(ref memberinfo, "", "护照号", "Address", "填写护照号码", 10, "Fill", "", "", false, true));
                    box.AppendLine(html.TextBox(ref memberinfo, "", "签发地", "PostCode", "请用中文填写", 10, "Fill", "", "", false, true));
                    box.AppendLine(html.HelpCell("填写护照证件上的信息"));
                    box.AppendLine(html.DateYMD(ref memberinfo, "", "签发日期", "AltPhoneType", "2000-1-1", "1901-1-1", DateTime.Now.ToShortDateString(), "", "", false, true));
                    box.AppendLine(html.DateYMD(ref memberinfo, "", "到期日期", "AddressCity", "2000-1-1", "1901-1-1", DateTime.Now.ToShortDateString(), "", "", false, true));
                    box.AppendLine(html.HelpCell());
                    box.AppendLine(html.TextBox(ref memberinfo, "", "颁发国家", "AltPhoneType", "填写国家名称", 10, "CN", "", "", false, true));
                    box.AppendLine(html.TextBox(ref memberinfo, "", "持有人国籍", "AddressCity", "填写国籍", 10, "CN", "", "", false, true));
                    box.AppendLine(html.HelpCell());
                    box.AppendLine(html.GroupEnd());
                    box.AppendLine(html.GroupStart());

                    box.AppendLine(html.DropDownList(ref memberinfo, "", "是否曾经前往过澳洲或申请过澳洲签证", "AltPhoneType", "是,否", "", "", false, true));
                    box.AppendLine(html.DropDownList(ref memberinfo, "", "申请人是否曾持以前的护照前往过澳洲", "AltPhoneType", "是,否", "", "", false, true));
                    box.AppendLine(html.HelpCell());
                    box.AppendLine(html.GroupEnd());
                    box.AppendLine(html.GroupStart());
                    box.AppendLine(html.DropDownList(ref memberinfo, "", "申请人是否有澳洲签证授权号码", "AltPhoneType", "是,否", "", "", false, true));
                    box.AppendLine(html.DropDownList(ref memberinfo, "", "曾经持有和目前仍然有效的所有国家签证", "AltPhoneType", "是,否", "", "", false, true));
                    box.AppendLine(html.HelpCell());
                    box.AppendLine(html.GroupEnd());
                    break;
                case "IT":
                    //OnReadyScript = "<script>$(function () {JudgeWorkNow();JudgeIsLastWork();JudgeIsLastWork2();JudgeIsEducation();JudgeIsEducation2();JudgeIsEducation3();JudgeEtc02();JudgeEtc03();})</script>";
                    NotRequired = "|CurrentOccupation_EN|CurrentEntryDate|CurrentCompany_EN|CurrentEducationSchool_EN";
                    NotRequired += "|LastCompany|LastCompany_EN|LastCompany2|LastCompany_EN2|LastCompany3|LastCompany_EN3";
                    NotRequired += "|EducationSchool|EducationSchool_EN|EducationSchool2|EducationSchool_EN2|EducationSchool3|EducationSchool_EN3|";
                    //当前工作
                    box.AppendLine(html.GroupStart());
                    box.AppendLine(html.TextBox(ref memberinfo, "", "出行目的", "Address", "请填写中文", 10, "Fill", "", "", false, true));
                    box.AppendLine(html.DropDownList(ref memberinfo, "", "是否是团队申请", "PostCode", "是,否", "", "", false, true));
                    box.AppendLine(html.HelpCell());
                    box.AppendLine(html.TextBox(ref memberinfo, "", "预计出发日期", "AltPhoneType", "请填写日期", 10, "Fill", "", "", false, true));
                    box.AppendLine(html.TextBox(ref memberinfo, "", "预计离开日期", "AddressCity", "请填写日期", 10, "Fill", "", "", false, true));
                    box.AppendLine(html.HelpCell());
                    box.AppendLine(html.TextBox(ref memberinfo, "", "颁发国家", "AltPhoneType", "填写国家名称", 10, "CN", "", "", false, true));
                    box.AppendLine(html.TextBox(ref memberinfo, "", "持有人国籍", "AddressCity", "填写国籍", 10, "CN", "", "", false, true));
                    box.AppendLine(html.HelpCell());
                    box.AppendLine(html.GroupEnd());
                    box.AppendLine(html.GroupStart());
                    box.AppendLine(html.DropDownList(ref memberinfo, "", "是否曾经申请过澳洲签证", "AltPhoneType", "是,否", "", "", false, true));
                    box.AppendLine(html.DropDownList(ref memberinfo, "", "是否曾持以前的护照去过澳洲", "AddressCity", "是,否", "", "", false, true));
                    box.AppendLine(html.GroupEnd());
                    box.AppendLine(html.GroupStart());
                    box.AppendLine(html.TextBox(ref memberinfo, "", "曾经持有和目前仍然有效的所有国家签证", "AltPhoneType", "若有多个则用逗号分开", 10, "NUM", "", "", true, true));
                    box.AppendLine(html.HelpCell());
                    box.AppendLine(html.DropDownList(ref memberinfo, "", "申请人是否有澳洲签证授权号码", "AltPhoneType", "是,否", "", "", false, true));
                    box.AppendLine(html.HelpCell());
                    box.AppendLine(html.GroupEnd());
                    break;
            }
            //output
            ViewBag.CountryCode = CountryCode;
            ViewBag.InfoChannel = InfoChannel;
            ViewBag.MemberID = MemberID;
            //
            ViewBag.Topic = utility.GetTopic(CountryCode);
            ViewBag.Subject = "请填写" + utility.GetSubject(InfoChannel);
            ViewBag.NaviLinks = utility.GetNaviLinks(CountryCode, InfoChannel, MemberID);
            //
            ViewBag.HtmlForm = box.ToString();
            ViewBag.PredefinedJavascript = js.ToString();
            ViewBag.NotRequired = NotRequired;
            ViewBag.OnReadyScript = OnReadyScript;
            return View();
        }
        ///--------------------------------------------------------------------------------------------

        ///====================================================================h5
    }
}
